<template>
	<view v-if="show">
		<!-- 提示框 -->
		<view class="showToast">
			<view class="showToast_item">
				{{title}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			// 标题（名称）
			title: {
				type: String,
				default: ''
			},
			show: {
				type: Boolean,
				default: false
			},
			duration: {
				type: Number,
				default: 2000
			}
		},
		watch: {
		},
		data() {
			return {}
		},
		methods: {

		}
	}
</script>

<style>
	/* 提示框 */
	.showToast {
		bottom: 150rpx;
		position: fixed;
		width: 100%;
		display: flex;
	}

	.showToast_item {
		padding: 10rpx 10rpx;
		font-size: 25rpx;
		color: #000000;
		line-height: 42rpx;
		text-align: center;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 6rpx 1rpx rgba(0, 0, 0, 0.16);
		border-radius: 11rpx;
		margin: auto;
	}
</style>
